home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1994-04-09 | 1.9 KB | [TEXT/KAHL] |
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary).
You can browse this item here: TutorialLC.c
Confidence | Program | Detection | Match Type | Support
|
---|
66%
| dexvert
| Compact Compressed (Unix) (archive/compact)
| ext
| Supported |
10%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| MacBinary II, Sat Apr 9 13:47:46 1994, modified Sat Apr 9 13:47:46 1994, creator Think C, type ASCII, 1346 bytes "TutorialLC.c" , at 0x5c2 348 bytes resource
| default (weak)
| |
99%
| file
| data
| default
| |
74%
| TrID
| Macintosh plain text (MacBinary)
| default
| |
25%
| TrID
| MacBinary 2
| default (weak)
| |
100%
| siegfried
| fmt/1762 MacBinary (II)
| default
| |
100%
| lsar
| MacBinary
| default
|
|
id metadata |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [KAHL] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0c 54 75 74 6f 72 69 | 61 6c 4c 43 2e 63 00 00 |..Tutori|alLC.c..|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4b 41 48 | 4c 00 00 00 00 00 00 00 |.TEXTKAH|L.......|
|00000050| 00 00 00 00 00 05 42 00 | 00 01 5c a9 cc 9a c2 a9 |......B.|..\.....|
|00000060| cc 9a c2 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 61 74 00 00 |........|....at..|
|00000080| 2f 2a 20 54 75 74 6f 72 | 69 61 6c 20 4c 43 20 44 |/* Tutor|ial LC D|
|00000090| 65 6d 6f 6e 73 74 72 61 | 74 69 6f 6e 20 50 72 6f |emonstra|tion Pro|
|000000a0| 67 72 61 6d 20 2a 2f 0d | 2f 2a 20 a9 46 61 63 65 |gram */.|/* .Face|
|000000b0| 57 61 72 65 20 31 39 39 | 33 2e 20 20 41 6c 6c 20 |Ware 199|3. All |
|000000c0| 52 69 67 68 74 73 20 52 | 65 73 65 72 76 65 64 2e |Rights R|eserved.|
|000000d0| 20 2a 2f 0d 0d 23 69 6e | 63 6c 75 64 65 20 3c 73 | */..#in|clude <s|
|000000e0| 74 72 69 6e 67 2e 68 3e | 0d 23 69 6e 63 6c 75 64 |tring.h>|.#includ|
|000000f0| 65 20 22 46 61 63 65 53 | 74 6f 72 4c 43 2e 68 22 |e "FaceS|torLC.h"|
|00000100| 0d 65 78 74 65 72 6e 20 | 73 74 72 75 63 74 20 46 |.extern |struct F|
|00000110| 61 63 65 52 65 63 20 66 | 52 65 63 3b 0d 0d 73 68 |aceRec f|Rec;..sh|
|00000120| 6f 72 74 20 74 68 65 46 | 6c 61 67 2c 74 68 65 4c |ort theF|lag,theL|
|00000130| 69 73 74 49 74 65 6d 2c | 74 68 65 4d 65 6e 75 49 |istItem,|theMenuI|
|00000140| 74 65 6d 3b 0d 63 68 61 | 72 20 74 68 65 53 74 72 |tem;.cha|r theStr|
|00000150| 69 6e 67 5b 33 32 5d 3b | 0d 0d 76 6f 69 64 20 6d |ing[32];|..void m|
|00000160| 61 69 6e 28 29 0d 7b 0d | 09 73 74 72 63 70 79 28 |ain().{.|.strcpy(|
|00000170| 66 52 65 63 2e 75 4e 61 | 6d 65 2c 20 22 54 75 74 |fRec.uNa|me, "Tut|
|00000180| 6f 72 69 61 6c 2e 52 73 | 72 63 22 29 3b 0d 09 46 |orial.Rs|rc");..F|
|00000190| 61 63 65 49 74 28 30 2c | 44 6f 49 6e 69 74 2c 30 |aceIt(0,|DoInit,0|
|000001a0| 2c 30 2c 30 2c 30 29 3b | 0d 09 74 68 65 46 6c 61 |,0,0,0);|..theFla|
|000001b0| 67 20 3d 20 30 3b 0d 09 | 74 68 65 4c 69 73 74 49 |g = 0;..|theListI|
|000001c0| 74 65 6d 20 3d 20 33 3b | 0d 09 74 68 65 4d 65 6e |tem = 3;|..theMen|
|000001d0| 75 49 74 65 6d 20 3d 20 | 32 3b 0d 09 73 74 72 63 |uItem = |2;..strc|
|000001e0| 70 79 28 74 68 65 53 74 | 72 69 6e 67 2c 22 48 65 |py(theSt|ring,"He|
|000001f0| 6c 6c 6f 22 29 3b 0d 09 | 66 6f 72 20 28 3b 3b 29 |llo");..|for (;;)|
|00000200| 20 7b 0d 09 09 46 61 63 | 65 49 74 28 30 2c 44 6f | {...Fac|eIt(0,Do|
|00000210| 4c 6f 6f 70 2c 30 2c 30 | 2c 30 2c 30 29 3b 0d 09 |Loop,0,0|,0,0);..|
|00000220| 09 69 66 20 28 28 66 52 | 65 63 2e 75 4d 65 6e 75 |.if ((fR|ec.uMenu|
|00000230| 49 44 20 3d 3d 20 31 30 | 35 29 26 26 28 66 52 65 |ID == 10|5)&&(fRe|
|00000240| 63 2e 75 4d 65 6e 75 49 | 74 65 6d 20 3d 3d 20 31 |c.uMenuI|tem == 1|
|00000250| 29 29 0d 09 09 09 7b 0d | 09 09 09 46 61 63 65 49 |))....{.|...FaceI|
|00000260| 74 28 30 2c 4e 65 77 57 | 6e 64 2c 31 30 31 30 2c |t(0,NewW|nd,1010,|
|00000270| 30 2c 30 2c 30 29 3b 0d | 09 09 09 46 61 63 65 49 |0,0,0);.|...FaceI|
|00000280| 74 28 30 2c 47 65 74 43 | 74 6c 2c 31 30 31 30 2c |t(0,GetC|tl,1010,|
|00000290| 30 2c 31 2c 33 29 3b 0d | 09 09 09 46 61 63 65 49 |0,1,3);.|...FaceI|
|000002a0| 74 28 30 2c 4c 6e 6b 43 | 74 6c 2c 28 6c 6f 6e 67 |t(0,LnkC|tl,(long|
|000002b0| 29 66 52 65 63 2e 63 43 | 6f 6e 74 72 6f 6c 2c 28 |)fRec.cC|ontrol,(|
|000002c0| 6c 6f 6e 67 29 26 74 68 | 65 46 6c 61 67 2c 32 2c |long)&th|eFlag,2,|
|000002d0| 30 29 3b 0d 09 09 09 46 | 61 63 65 49 74 28 30 2c |0);....F|aceIt(0,|
|000002e0| 47 65 74 43 74 6c 2c 31 | 30 31 30 2c 30 2c 31 2c |GetCtl,1|010,0,1,|
|000002f0| 34 29 3b 0d 09 09 09 46 | 61 63 65 49 74 28 30 2c |4);....F|aceIt(0,|
|00000300| 4c 6e 6b 43 74 6c 2c 28 | 6c 6f 6e 67 29 66 52 65 |LnkCtl,(|long)fRe|
|00000310| 63 2e 63 43 6f 6e 74 72 | 6f 6c 2c 28 6c 6f 6e 67 |c.cContr|ol,(long|
|00000320| 29 74 68 65 53 74 72 69 | 6e 67 2c 2d 33 31 2c 30 |)theStri|ng,-31,0|
|00000330| 29 3b 0d 09 09 09 46 61 | 63 65 49 74 28 30 2c 47 |);....Fa|ceIt(0,G|
|00000340| 65 74 43 74 6c 2c 31 30 | 31 30 2c 30 2c 31 2c 35 |etCtl,10|10,0,1,5|
|00000350| 29 3b 0d 09 09 09 46 61 | 63 65 49 74 28 30 2c 4c |);....Fa|ceIt(0,L|
|00000360| 6e 6b 43 74 6c 2c 28 6c | 6f 6e 67 29 66 52 65 63 |nkCtl,(l|ong)fRec|
|00000370| 2e 63 43 6f 6e 74 72 6f | 6c 2c 28 6c 6f 6e 67 29 |.cContro|l,(long)|
|00000380| 26 74 68 65 4c 69 73 74 | 49 74 65 6d 2c 32 2c 30 |&theList|Item,2,0|
|00000390| 29 3b 0d 09 09 09 46 61 | 63 65 49 74 28 30 2c 47 |);....Fa|ceIt(0,G|
|000003a0| 65 74 43 74 6c 2c 31 30 | 31 30 2c 30 2c 31 2c 36 |etCtl,10|10,0,1,6|
|000003b0| 29 3b 0d 09 09 09 46 61 | 63 65 49 74 28 30 2c 4c |);....Fa|ceIt(0,L|
|000003c0| 6e 6b 43 74 6c 2c 28 6c | 6f 6e 67 29 66 52 65 63 |nkCtl,(l|ong)fRec|
|000003d0| 2e 63 43 6f 6e 74 72 6f | 6c 2c 28 6c 6f 6e 67 29 |.cContro|l,(long)|
|000003e0| 26 74 68 65 4d 65 6e 75 | 49 74 65 6d 2c 32 2c 30 |&theMenu|Item,2,0|
|000003f0| 29 3b 0d 09 09 09 46 61 | 63 65 49 74 28 30 2c 53 |);....Fa|ceIt(0,S|
|00000400| 65 74 56 61 6c 2c 31 30 | 31 30 2c 30 2c 30 2c 30 |etVal,10|10,0,0,0|
|00000410| 29 3b 0d 09 09 09 66 6f | 72 20 28 3b 3b 29 20 7b |);....fo|r (;;) {|
|00000420| 0d 09 09 09 09 46 61 63 | 65 49 74 28 30 2c 4d 64 |.....Fac|eIt(0,Md|
|00000430| 6c 57 6e 64 2c 31 30 31 | 30 2c 30 2c 30 2c 30 29 |lWnd,101|0,0,0,0)|
|00000440| 3b 0d 09 09 09 09 69 66 | 20 28 66 52 65 63 2e 75 |;.....if| (fRec.u|
|00000450| 4d 65 6e 75 49 44 20 3d | 3d 20 31 30 31 30 29 20 |MenuID =|= 1010) |
|00000460| 7b 0d 09 09 09 09 09 69 | 66 20 28 66 52 65 63 2e |{......i|f (fRec.|
|00000470| 77 63 48 69 74 20 3d 3d | 20 2d 31 29 0d 09 09 09 |wcHit ==| -1)....|
|00000480| 09 09 09 62 72 65 61 6b | 3b 0d 09 09 09 09 09 65 |...break|;......e|
|00000490| 6c 73 65 20 69 66 20 28 | 66 52 65 63 2e 77 63 48 |lse if (|fRec.wcH|
|000004a0| 69 74 20 3d 3d 20 31 29 | 20 7b 0d 09 09 09 09 09 |it == 1)| {......|
|000004b0| 09 46 61 63 65 49 74 28 | 30 2c 47 65 74 56 61 6c |.FaceIt(|0,GetVal|
|000004c0| 2c 31 30 31 30 2c 30 2c | 30 2c 30 29 3b 0d 09 09 |,1010,0,|0,0);...|
|000004d0| 09 09 09 09 62 72 65 61 | 6b 3b 0d 09 09 09 09 09 |....brea|k;......|
|000004e0| 09 7d 0d 09 09 09 09 09 | 65 6c 73 65 20 69 66 20 |.}......|else if |
|000004f0| 28 66 52 65 63 2e 77 63 | 48 69 74 20 3d 3d 20 32 |(fRec.wc|Hit == 2|
|00000500| 29 20 7b 0d 09 09 09 09 | 09 09 46 61 63 65 49 74 |) {.....|..FaceIt|
|00000510| 28 30 2c 47 65 74 43 74 | 6c 2c 31 30 31 30 2c 30 |(0,GetCt|l,1010,0|
|00000520| 2c 31 2c 38 29 3b 0d 09 | 09 09 09 09 09 73 74 72 |,1,8);..|.....str|
|00000530| 63 70 79 28 66 52 65 63 | 2e 75 53 74 72 69 6e 67 |cpy(fRec|.uString|
|00000540| 2c 22 52 75 6e 20 62 75 | 74 74 6f 6e 20 77 61 73 |,"Run bu|tton was|
|00000550| 20 68 69 74 2e 22 29 3b | 0d 09 09 09 09 09 09 46 | hit.");|.......F|
|00000560| 61 63 65 49 74 28 66 52 | 65 63 2e 63 43 6f 6e 74 |aceIt(fR|ec.cCont|
|00000570| 72 6f 6c 2c 31 35 36 35 | 2c 32 2c 30 2c 30 2c 30 |rol,1565|,2,0,0,0|
|00000580| 29 3b 0d 09 09 09 09 09 | 09 7d 0d 09 09 09 09 09 |);......|.}......|
|00000590| 7d 0d 09 09 09 09 7d 0d | 09 09 09 46 61 63 65 49 |}.....}.|...FaceI|
|000005a0| 74 28 30 2c 45 6e 64 57 | 6e 64 2c 31 30 31 30 2c |t(0,EndW|nd,1010,|
|000005b0| 30 2c 30 2c 30 29 3b 0d | 09 09 09 7d 0d 09 09 7d |0,0,0);.|...}...}|
|000005c0| 0d 7d 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.}......|........|
|000005d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000600| 00 00 01 00 00 00 01 16 | 00 00 00 16 00 00 00 46 |........|.......F|
|00000610| 74 69 76 65 00 00 00 1f | 00 d2 01 09 00 e2 01 54 |tive....|.......T|
|00000620| 00 00 01 00 00 01 00 00 | 00 0a 00 00 00 00 08 49 |........|.......I|
|00000630| 0c 54 75 74 6f 72 69 61 | 6c 4c 43 2e 63 cc 02 00 |.Tutoria|lLC.c...|
|00000640| 00 00 50 61 72 74 53 49 | 54 78 00 00 00 00 00 00 |..PartSI|Tx......|
|00000650| 00 00 50 61 72 74 53 49 | 54 78 00 00 00 00 00 00 |..PartSI|Tx......|
|00000660| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000670| 00 00 aa 02 9a 29 00 00 | 00 00 00 00 01 5c 3f ff |.....)..|.....\?.|
|00000680| 02 8e 53 ee ff ea 62 7c | 20 55 20 50 3f 28 00 48 |..S...b|| U P?(.H|
|00000690| 3f 3c 00 01 a8 89 48 6e | ff ce aa 19 48 6e ff c8 |?<....Hn|....Hn..|
|000006a0| aa 1a 42 a7 42 27 2f 2e | 00 0e 48 6f 00 06 aa 44 |..B.B'/.|..Ho...D|
|000006b0| 54 4f 20 5f 20 50 20 68 | 00 08 2d 48 ff de a0 29 |TO _ P h|..-H...)|
|000006c0| 2d 50 ff da 42 a7 42 27 | 20 6e 00 0e 20 50 2f 28 |-P..B.B'| n.. P/(|
|000006d0| 00 04 48 6f 00 06 aa 42 | 54 4f 20 5f 20 50 20 68 |..Ho...B|TO _ P h|
|000006e0| 00 08 20 50 30 28 00 06 | c0 fc 00 08 4a 70 00 08 |.. P0(..|....Jp..|
|000006f0| 67 06 51 40 6c f6 70 00 | 2d 70 00 0a ff d4 3d 70 |g.Q@l.p.|-p....=p|
|00000700| 00 00 00 04 00 06 00 02 | 00 00 00 0a 00 09 06 4d |........|.......M|
|00000710| 6f 6e 61 63 6f 1e 00 00 | 01 00 00 00 01 16 00 00 |onaco...|........|
|00000720| 00 16 00 00 00 46 00 05 | 74 14 04 c8 00 00 00 1c |.....F..|t.......|
|00000730| 00 46 00 01 45 54 41 42 | 00 00 00 12 45 46 4e 54 |.F..ETAB|....EFNT|
|00000740| 00 00 00 1e 03 ec ff ff | 00 00 00 00 00 05 71 20 |........|......q |
|00000750| 03 eb ff ff 00 00 00 08 | 00 05 71 24 00 00 00 00 |........|..q$....|
|00000760| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000770| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+